package com.ProductionAndConsumption;

public class Product implements Runnable{
    private Store2 store2;

    public Product(Store2 store2) {
        this.store2 = store2;
    }

    @Override
    public void run() {
        int num = (int) (Math.random() * 100);
        store2.save(num);
    }
}
